import request from '../utils/request'

// 获取反馈类型列表
export const commentTypeList = () => {
  return request.get('system/feedback/commentTypeList')
}

// 获取反馈列表
export const infoList = (commentDTO) => {
  return request.post('system/feedback/infoList', commentDTO)
}

// 获取反馈详情
export const info = (id) => {
  return request.get('system/feedback/info', {
    params: {
      id
    }
  })
}

// 删除反馈
export const deleteFeedback = (id) => {
  return request.post('system/feedback/delete', {}, {
    params: {
      id
    }
  })
}
